import request from '@/utils/request'

// 查询用户-附表列表
export function listHrUser(query) {
  return request({
    url: '/hr/hrUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户-附表详细
export function getHrUser(userUuid) {
  return request({
    url: '/hr/hrUser/' + userUuid,
    method: 'get'
  })
}

// 新增用户-附表
export function addHrUser(data) {
  return request({
    url: '/hr/hrUser',
    method: 'post',
    data: data
  })
}

// 修改用户-附表
export function updateHrUser(data) {
  return request({
    url: '/hr/hrUser',
    method: 'put',
    data: data
  })
}

// 删除用户-附表
export function delHrUser(userUuid) {
  return request({
    url: '/hr/hrUser/' + userUuid,
    method: 'delete'
  })
}
